import React, { Suspense } from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import reportWebVitals from './reportWebVitals';
import App from './App';
import { RouterProvider } from 'react-router-dom'
import router from './router/index'
import { Provider } from 'react-redux'
import '@nutui/nutui-react/dist/style.css'
import "./utils/rem"
// import 'tdesign-mobile-react/es/style/index.css'
import store from './store/index'
import axios from 'axios';
const root = ReactDOM.createRoot(document.getElementById('root'));
axios.defaults.baseURL = "http://localhost:3000"
root.render(
  <Provider store={store}>
    <Suspense fallback={"加载中......"}>
      <RouterProvider router={router}></RouterProvider>
    </Suspense>
  </Provider>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
